package router

import (
	"github.com/gin-gonic/gin"
	"travel-social-app/internal/api"
)

func UserRouter(c *gin.RouterGroup) {
	user := c.Group("/user")
	{
		user.POST("/register", api.Register)
		user.POST("/CreatePlace", api.CreatePlace)
		user.GET("/Search", api.Search)
		user.GET("/AddSearch", api.AddSearch)
		user.POST("/BuyVote", api.BuyVote)
		user.POST("/login", api.Login)
		user.POST("/CreateOrder", api.CreateOrder)
	}
}
